import request from '@/utils/request'

// 获取电站监控
export function getPsList(params) {
    return request({
        url: '/monitor/getPsList',
        method: 'GET',
        params
    })
}
export function getPsListByIds(params) {
  return request({
      url: '/monitor/getPsListByIds?ids=' + params,
      method: 'GET',
  })
}
// 获取设备信息
export function getPsInfo(id) {
    return request({
        url: `/monitor/getPsInfo/${id}`,
        method: 'GET'
    })
}
// 设备信息====弹框
export function getPsData(params) {
    return request({
        url: '/monitor/getPsData',
        method: 'GET',
        params
    })
}

// 获取故障历史
export function getPsFaultHisList(params) {
    return request({
        url: '/monitor/getPsFaultHisList',
        method: 'GET',
        params
    })
}
// 逆变器获取曲线图接口
export function getPsCharts(params) {
    return request({
        url: '/monitor/getPsCharts',
        method: 'GET',
        params
    })
}
// 网关获取曲线图接口
export function getGatewayCharts(params) {
    return request({
        url: '/monitor/getGatCharts',
        method: 'GET',
        params
    })
}
// 设备指令下发
export function commandControl(data) {
    return request({
        url: '/monitor/commandControl',
        method: 'POST',
        data
    })
}
